/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * regListCustomer.java
 *
 * Created on 15 ม.ค. 2553, 13:48:27
 */

package store.frontend;

/**
 *
 * @author Administrator
 */
public class PnlListCustomer extends javax.swing.JPanel {

    /** Creates new form regListCustomer */
    public PnlListCustomer() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlListCustomer = new javax.swing.JPanel();
        lblListCustomer = new javax.swing.JLabel();
        btnListCustomerSearch = new javax.swing.JButton();
        btnListCustomerCancel = new javax.swing.JButton();
        btnListCustomerEdit = new javax.swing.JButton();
        btnListCustomerAdd = new javax.swing.JButton();
        btnListCustomerCancel1 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        lblListCustomerNationnalID = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        lblListCustomerdateBorn = new javax.swing.JLabel();
        lblListCustomerProvince = new javax.swing.JLabel();
        lblListCustomerPostcode = new javax.swing.JLabel();
        txfListCustomerNationnalID = new javax.swing.JTextField();
        txfListCustomerName = new javax.swing.JTextField();
        txtCodeType5 = new javax.swing.JTextField();
        cbbListCustomerProvince = new javax.swing.JComboBox();
        jScrollPane2 = new javax.swing.JScrollPane();
        tblListCustomer = new javax.swing.JTable();
        txtCodeType6 = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlListCustomer.setBackground(new java.awt.Color(255, 204, 102));
        pnlListCustomer.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlListCustomer.setPreferredSize(new java.awt.Dimension(700, 80));

        lblListCustomer.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListCustomer.setText("สมาชิก");

        btnListCustomerSearch.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListCustomerSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N
        btnListCustomerSearch.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListCustomerSearch.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListCustomerSearch.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListCustomerCancel.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListCustomerCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnListCustomerCancel.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListCustomerCancel.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListCustomerCancel.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListCustomerEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListCustomerEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnListCustomerEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListCustomerEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListCustomerEdit.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListCustomerAdd.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListCustomerAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N
        btnListCustomerAdd.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListCustomerAdd.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListCustomerAdd.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListCustomerCancel1.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListCustomerCancel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/rfid_30x30.gif"))); // NOI18N
        btnListCustomerCancel1.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListCustomerCancel1.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListCustomerCancel1.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlListCustomerLayout = new javax.swing.GroupLayout(pnlListCustomer);
        pnlListCustomer.setLayout(pnlListCustomerLayout);
        pnlListCustomerLayout.setHorizontalGroup(
            pnlListCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListCustomerLayout.createSequentialGroup()
                .addContainerGap(22, Short.MAX_VALUE)
                .addGroup(pnlListCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListCustomerLayout.createSequentialGroup()
                        .addComponent(btnListCustomerSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListCustomerAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)
                        .addComponent(btnListCustomerEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListCustomerCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 436, Short.MAX_VALUE)
                        .addComponent(btnListCustomerCancel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblListCustomer))
                .addContainerGap())
        );
        pnlListCustomerLayout.setVerticalGroup(
            pnlListCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlListCustomerLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlListCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnListCustomerCancel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlListCustomerLayout.createSequentialGroup()
                        .addComponent(lblListCustomer)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlListCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnListCustomerEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnListCustomerSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnListCustomerCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnListCustomerAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(8, 8, 8))
        );

        add(pnlListCustomer, java.awt.BorderLayout.NORTH);

        lblListCustomerNationnalID.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListCustomerNationnalID.setText("รหัสบัตรประชาชน :");

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jLabel3.setText("ชื่อ :");

        lblListCustomerdateBorn.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListCustomerdateBorn.setText("วัน/เดือน/ปี เกิด :");

        lblListCustomerProvince.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListCustomerProvince.setText("จังหวัด :");

        lblListCustomerPostcode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListCustomerPostcode.setText("รหัสไปรษณีย์ :");

        txfListCustomerNationnalID.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListCustomerNationnalID.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListCustomerNationnalIDActionPerformed(evt);
            }
        });

        txfListCustomerName.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListCustomerName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListCustomerNameActionPerformed(evt);
            }
        });

        txtCodeType5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtCodeType5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodeType5ActionPerformed(evt);
            }
        });

        cbbListCustomerProvince.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cbbListCustomerProvince.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "กระบี่ ", "กรุงเทพมหานคร ", "กาญจนบุรี ", "กาฬสินธุ์ ", "กำแพงเพชร  ", "ขอนแก่น ", "จันทบุรี ", "ฉะเชิงเทรา ", "ชลบุรี", "ชัยนาท ", "ชัยภูมิ ", "ชุมพร ", "เชียงราย", "เชียงใหม่ ", "ตรัง ", "ตราด ", "ตาก ", "นครนายก ", "นครปฐม ", "นครพนม", "นครราชสีมา ", "นครศรีธรรมราช ", "นครสวรรค์", "นนทบุรี ", "นราธิวาส ", "น่าน ", "บุรีรัมย์ ", "ปทุมธานี ", "ประจวบคีรีขันธ์ ", "ปราจีนบุรี ", "ปัตตานี ", "พระนครศรีอยุธยา ", "พะเยา ", "พังงา ", "พัทลุง ", "พิจิตร ", "พิษณุโลก ", "เพชรบุรี", "เพชรบูรณ์ ", "แพร่ ", "ภูเก็ต ", "มหาสารคาม ", "มุกดาหาร ", "แม่ฮ่องสอน ", "ยโสธร", "ยะลา ", "ร้อยเอ็ด ", "ระนอง", "ระยอง ", "ราชบุรี ", "ลพบุรี ", "ลำปาง ", "ลำพูน ", "เลย", "ศรีสะเกษ ", "สกลนคร ", "สงขลา", "สตูล", "สมุทรปราการ ", "สมุทรสงคราม ", "สมุทรสาคร  ", "สระแก้ว ", "สระบุรี ", "สิงห์บุรี ", "สุโขทัย ", "สุพรรณบุรี ", "สุราษฎร์ธานี", "สุรินทร์ ", "หนองคาย ", "หนองบัวลำภู ", "อ่างทอง ", "อำนาจเจริญ ", "อุดรธานี ", "อุตรดิตถ์ ", "อุทัยธานี ", "อุบลราชธานี ", " " }));

        tblListCustomer.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "เลขที่สมาชิก", "ชื่อสมาชิก", "ที่อยู่", "จังหวัด", "รหัสไปรษณี", "เบอร์โทรศัพท์", " จังหวัด", "E-mail"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane2.setViewportView(tblListCustomer);

        txtCodeType6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtCodeType6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodeType6ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblListCustomerPostcode)
                    .addComponent(lblListCustomerdateBorn)
                    .addComponent(lblListCustomerProvince)
                    .addComponent(lblListCustomerNationnalID)
                    .addComponent(jLabel3))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txfListCustomerNationnalID, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                            .addComponent(txfListCustomerName)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtCodeType6, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                            .addComponent(txtCodeType5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                            .addComponent(cbbListCustomerProvince, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(419, 419, 419))
            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListCustomerNationnalID)
                    .addComponent(txfListCustomerNationnalID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfListCustomerName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbbListCustomerProvince, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListCustomerProvince))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodeType5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListCustomerPostcode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCodeType6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListCustomerdateBorn))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(122, Short.MAX_VALUE))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtCodeType5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodeType5ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtCodeType5ActionPerformed

    private void txfListCustomerNationnalIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListCustomerNationnalIDActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListCustomerNationnalIDActionPerformed

    private void txfListCustomerNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListCustomerNameActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListCustomerNameActionPerformed

    private void txtCodeType6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodeType6ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodeType6ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnListCustomerAdd;
    private javax.swing.JButton btnListCustomerCancel;
    private javax.swing.JButton btnListCustomerCancel1;
    private javax.swing.JButton btnListCustomerEdit;
    private javax.swing.JButton btnListCustomerSearch;
    private javax.swing.JComboBox cbbListCustomerProvince;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblListCustomer;
    private javax.swing.JLabel lblListCustomerNationnalID;
    private javax.swing.JLabel lblListCustomerPostcode;
    private javax.swing.JLabel lblListCustomerProvince;
    private javax.swing.JLabel lblListCustomerdateBorn;
    private javax.swing.JPanel pnlListCustomer;
    private javax.swing.JTable tblListCustomer;
    private javax.swing.JTextField txfListCustomerName;
    private javax.swing.JTextField txfListCustomerNationnalID;
    private javax.swing.JTextField txtCodeType5;
    private javax.swing.JTextField txtCodeType6;
    // End of variables declaration//GEN-END:variables

}
